import Home from "../pages/Home"
import Detail from "../pages/Detail"

import Classfy from "../pages/Home/Classfy"
import Main from "../pages/Home/Main"
import My from "../pages/Home/My"
import ShopCar from "../pages/Home/ShopCar"


import {AppOutline,UnorderedListOutline,TruckOutline,SmileOutline} from "antd-mobile-icons"

const routes =[{
    path:'/home',
    name:'主页',
    component:Home,
    children:[{
        path:'/home/main',
        name:'首页',
        component:Main,
        icons:<AppOutline/>
    },{
        path:'/home/classfy',
        name:'分类',
        component:Classfy,
        icons:<UnorderedListOutline/>
    },{
        path:'/home/shopcar',
        name:'购物车',
        component:ShopCar,
        icons:<TruckOutline/>
    },{
        path:'/home/my',
        name:'我的',
        component:My,
        icons:<SmileOutline/>
    },]
},{
    path:'/detail',
    name:'详情',
    component:Detail
},{
    from:'/',
    to:'/home'
}]

export default routes